
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     L i m i t   E x a m p l e 
 
 '     T h e   V 1   v a l u e   i s   l i m i t e d   i n   t h e   r a n g e   0   t o   1 0 0 
 
 '     A   s o u n d   i s   e m i t t e d   w h e n   l i m i t s   a r e   r e a c h e d 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 K e y   U p       G o s u b   I n c r e a s e 
 
 K e y   D o w n   G o s u b   D e c r e a s e 
 
 
 
 L a b e l   S t o p 
 
 S t o p 
 
 
 
 L a b e l   I n c r e a s e 
 
 	 v 1   =   L i m i t ( v 1   +   1 ,   0 ,   1 0 0 ) 
 
 	 I f   L i m i t R e a c h e d 
 
 	 	 B e e p 
 
 	 	 W a i t   s e c o n d s   0 . 5 
 
 	 E n d I f 
 
 	 B u t t o n   2   T e x t   " V a l u e   =   "   +   v 1 
 
 R e t u r n 
 
 
 
 L a b e l   D e c r e a s e 
 
 	 v 1   =   L i m i t ( v 1   -   1 ,   0 ,   1 0 0 ) 
 
 	 I f   L i m i t R e a c h e d 
 
 	 	 B e e p 
 
 	 	 W a i t   s e c o n d s   0 . 5 
 
 	 E n d I f 
 
 	 B u t t o n   2   T e x t   " V a l u e   =   "   +   v 1 
 
 R e t u r n 
 
 
 
 
 
 ' E X E C   G o s u b   3 
 
 